//
//  CourseRequestManager.h
//  TrainTree
//   课程相关的请求
//  Created by wanghui on 2017/9/29.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^ResponseData)(id JSONData,NSError *error,NSURLSessionDataTask *dataTask);
@interface CourseRequestManager : NSObject
/**拉取主题列表*/
+ (void)getThemeListResponseBlock:(ResponseData)responseBlock;

/**
 根据主题id拿到课程页面数据
 themeid 主题Id
 */
+ (void)getLessonListWithThemeId:(NSString *)themeId responseBlock:(ResponseData)responseBlock;
/**
 添加或移除课程
 lessonId 课程id
 type 0是添加，1是移除
 */
+ (void)addOrDeleteLessonWithLessonId:(NSString *)lessonId withType:(NSInteger)type responseBlock:(ResponseData)responseBlock;

/**
 课程详情
 lessonId 课程id
 */
+ (void)requestLessonDetailWithLessonId:(NSString *)lessonId reponseBlock:(ResponseData)responseBlock;

/*
    知识点详情，视频页面
    lessonId 课程id
 */
+ (void)requestAudioVideoWithLessonId:(NSString *)lessonId reponseBlock:(ResponseData)responseBlock;

/**
 视频记录
 */
+ (void)postStudyRecordReponseBlock:(ResponseData)responseBlock;















@end
